package com.server.schedule.initialnizer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import com.server.service.ICourseStudyService;
import com.server.service.IMsgManagementService;
import com.server.service.IUserAssignmentService;

public class InitialnizeProcessor implements ApplicationListener<ContextRefreshedEvent> {
	
	@Autowired
	private IUserAssignmentService userAssignmentService;
	@Autowired
	private ICourseStudyService courseStudyService;
	@Autowired
	private IMsgManagementService msgManagementService;
	
	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		userAssignmentService.loadUser();
		courseStudyService.loadClickCount();
		msgManagementService.loadPushData();
	}

}
